import { onMounted,ref } from "vue";

export default function useMousePoint(){
    const mouseX = ref(0);
    const mouseY = ref(0);
    const mouseMove = (e: MouseEvent) => {
      mouseX.value = e.clientX;
      mouseY.value = e.clientY;
    };
    onMounted(() => {
      console.log("鼠标位置初始化");
    });
  return {mouseX,mouseY,mouseMove}
}